<?php
header("Content-type: text/html; charset=utf-8");
$domain = $_SERVER['HTTP_HOST'];
$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
$readCatalog = $domain . $_GET['f'];
$filePath = str_replace('//','/',$readCatalog. '/index.php');
$wxConfigPath = str_replace('//','/',$readCatalog. '/wxConfig.php');

if (!is_file($filePath)) {
    header("Location: http://" . $domain . "/404.html");
    exit;
} else {
    include($filePath);
}
?>

